package com.bwie.user.controller;

import com.bwie.common.domain.Admin;
import com.bwie.common.result.Result;
import com.bwie.user.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author：贾维斯
 * @Description: 描述
 * @name：AdminController
 * @Date：2024/11/4 9:24
 */
@RestController
@RequestMapping("/login")
public class AdminController {
    @Autowired
    private AdminService adminService;

    @PostMapping("/findAdmin")
    public Result<Admin> findAdmin(@RequestBody Admin admin) {
       Admin admin1 =  adminService.findAdmin(admin);
        return Result.success(admin1);
    }
}
